<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Cheetah Software: SimControlPanel.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cheetah Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/dcd/_sim_control_panel_8cpp.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">SimControlPanel.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="../../d7/dab/_sim_control_panel_8h_source.html">SimControlPanel.h</a>&quot;</code><br />
<code>#include &lt;<a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters/ControlParameters.h</a>&gt;</code><br />
<code>#include &lt;QFileDialog&gt;</code><br />
<code>#include &lt;QMessageBox&gt;</code><br />
<code>#include &quot;ui_SimControlPanel.h&quot;</code><br />
</div><div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Include dependency graph for SimControlPanel.cpp:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d3/d20/_sim_control_panel_8cpp__incl.png" border="0" usemap="#_sim_control_panel_8cpp" alt=""/></div>
<map name="_sim_control_panel_8cpp" id="_sim_control_panel_8cpp">
</map>
</div>
</div>
<p><a href="../../d8/dcd/_sim_control_panel_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a771db95f0473f6530892c739de3c1b83"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/dcd/_sim_control_panel_8cpp.html#a771db95f0473f6530892c739de3c1b83">createErrorMessage</a> (const std::string &amp;text)</td></tr>
<tr class="separator:a771db95f0473f6530892c739de3c1b83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95b841e725f99ed779bdcbf80579cfd5"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/dcd/_sim_control_panel_8cpp.html#a95b841e725f99ed779bdcbf80579cfd5">updateQtableWithParameters</a> (<a class="el" href="../../d8/d86/class_control_parameters.html">ControlParameters</a> &amp;params, QTableWidget &amp;table)</td></tr>
<tr class="separator:a95b841e725f99ed779bdcbf80579cfd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a771db95f0473f6530892c739de3c1b83"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void createErrorMessage </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Display an error messagebox with the given text </p>

<p>Definition at line <a class="el" href="../../d8/dcd/_sim_control_panel_8cpp_source.html#l00011">11</a> of file <a class="el" href="../../d8/dcd/_sim_control_panel_8cpp_source.html">SimControlPanel.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;                                                      {</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;  QMessageBox mb;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;  mb.setText(QString(text.c_str()));</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;  mb.exec();</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;}</div></div><!-- fragment -->
<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d8/dcd/_sim_control_panel_8cpp_a771db95f0473f6530892c739de3c1b83_icgraph.png" border="0" usemap="#d8/dcd/_sim_control_panel_8cpp_a771db95f0473f6530892c739de3c1b83_icgraph" alt=""/></div>
<map name="d8/dcd/_sim_control_panel_8cpp_a771db95f0473f6530892c739de3c1b83_icgraph" id="d8/dcd/_sim_control_panel_8cpp_a771db95f0473f6530892c739de3c1b83_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a95b841e725f99ed779bdcbf80579cfd5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void updateQtableWithParameters </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d8/d86/class_control_parameters.html">ControlParameters</a> &amp;&#160;</td>
          <td class="paramname"><em>params</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QTableWidget &amp;&#160;</td>
          <td class="paramname"><em>table</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Display control parameters in a qtable. </p>

<p>Definition at line <a class="el" href="../../d8/dcd/_sim_control_panel_8cpp_source.html#l00020">20</a> of file <a class="el" href="../../d8/dcd/_sim_control_panel_8cpp_source.html">SimControlPanel.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameterCollection::_map</a>, and <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00441">ControlParameters::collection</a>.</p>
<div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;                                                            {</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  table.setRowCount((<a class="code" href="../../d0/d99/c_types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>)params.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>.size());</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  table.setColumnCount(2);</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;  <a class="code" href="../../d0/d99/c_types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> i = 0;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : params.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>) {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    (void)kv;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="../../d0/d99/c_types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> col = 0; col &lt; 2; col++) {</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;      QTableWidgetItem* cell = table.item(i, col);</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;      <span class="keywordflow">if</span> (!cell) {</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        cell = <span class="keyword">new</span> QTableWidgetItem;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        table.setItem(i, col, cell);</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;      }</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    }</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    table.item(i, 0)-&gt;setText(QString(kv.first.c_str()));</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    table.item(i, 1)-&gt;setText(QString(kv.second-&gt;toString().c_str()));</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    i++;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  }</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;}</div><div class="ttc" id="class_control_parameters_html_ab42dff0f07e88bf44c831238dd4ce96f"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">ControlParameters::collection</a></div><div class="ttdeci">ControlParameterCollection collection</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00441">ControlParameters.h:441</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
<div class="ttc" id="c_types_8h_html_ae9b1af5c037e57a98884758875d3a7c4"><div class="ttname"><a href="../../d0/d99/c_types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a></div><div class="ttdeci">int32_t s32</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d99/c_types_8h_source.html#l00023">cTypes.h:23</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d8/dcd/_sim_control_panel_8cpp_a95b841e725f99ed779bdcbf80579cfd5_icgraph.png" border="0" usemap="#d8/dcd/_sim_control_panel_8cpp_a95b841e725f99ed779bdcbf80579cfd5_icgraph" alt=""/></div>
<map name="d8/dcd/_sim_control_panel_8cpp_a95b841e725f99ed779bdcbf80579cfd5_icgraph" id="d8/dcd/_sim_control_panel_8cpp_a95b841e725f99ed779bdcbf80579cfd5_icgraph">
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="../../dir_61bfb0b3cdda81b1b0355ba34eb3b1eb.html">dhkim</a></li><li class="navelem"><a class="el" href="../../dir_adee5b101e079090017bb4e91c628ead.html">Public_Repository</a></li><li class="navelem"><a class="el" href="../../dir_7fc07a7b97001e7b1d18e11da761e2de.html">Cheetah-Software</a></li><li class="navelem"><a class="el" href="../../dir_e380f5e928ac62e3c78e1e401f2404bd.html">sim</a></li><li class="navelem"><a class="el" href="../../dir_a016bb1cae11d95bfbad53e4af068c30.html">src</a></li><li class="navelem"><a class="el" href="../../d8/dcd/_sim_control_panel_8cpp.html">SimControlPanel.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
